home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dbase
/
lib19.zip
/
LIB19TOC.ZIP
/
LIB19TOC.TXT
Wrap
Text File
|
1992-10-14
|
59KB
|
1,071 lines
===============================================================================
LIB19TOC.TXT
Table of Contents
For the dUFLP LIBRARY Files (attached)
(dUFLP = dBASE User's Function Library Project)
Version 1.9
10/14/92
===============================================================================
Some of the places routines are placed may seem a bit arbitrary -- they are.
These decisions were made based on the functions/procedures I use the most in
my own routines. Since the original purpose of this library was my own use,
I felt it my prerogative to be the one to make the final decision as to what
routines were left in PROC.PRG, and which got moved to the LIBRARY files.
Included in this LIBRARY System are the following files:
Text Files
README.TXT -- You're looking at it.
WHATS.NEW -- This is a description of the new features for this system.
CONTRIB.TXT -- How to contribute to the Library Project.
JPMOUSE.TXT -- An explanation from Jay on the JPMOUSE.BIN file, attached
(with his permission). See also the function ISMOUSE() and
procedure file SETMOUSE in PROC.PRG.
DISK.TXT -- A very brief discussion on the use of DISK.BIN.
SEARCH.TXT -- A very brief discussion on the use of SEARCH.BIN.
Procedure and Library Files -- Described Below
ARRAY.PRG
COLOR.PRG
CONVERT.PRG
DATES.PRG
FIELDS.PRG
FILES.PRG
FINANCE.PRG
FRPG.PRG
MEASURE.PRG
MISC.PRG
NAVIGATE.PRG
OBSOLETE.PRG
PROC.PRG
SCA.PRG
SCREEN.PRG
STATS.PRG
STRINGS.PRG
TIME.PRG
TRIG.PRG
WINDOWS.PRG
BIN Files -- used in routines attached.
JPMOUSE.BIN
DISK.BIN
SEARCH.BIN
Below is a quick list of all the procedures and functions included in the
library files in the sequence they are presented in the programs themselves:
===================================
PROC.PRG -- The MAIN PROCEDURE File
===================================
----------------------------------
MESSAGE/SCREEN PROCESSING ROUTINES
----------------------------------
PrintErr -- used to display a "standard" error message for printer
errors (is it on, online, out of paper?).
Usage: do PrintErr
Open_Screen -- Used to add texture to the background for an opening screen or
menu.
Usage: do Open_Screen
JazClear -- performs a nice center to edge of screen clear (using a box) ...
Usage: do JazClear
Wipe -- performs a left-to-right wipe of a window. Nice effect.
Usage: do Wipe with <nULRow>,<nULCol>,<nBRRow>,<nBRCol>
Center -- used to center text anywhere on the screen (optional colors).
Usage: do Center with <nRow>,<nWidth>,"<cColors>","<cText>"
Surround() -- Used to display text at X,Y position, surrounded with a double-
line box.
Usage: Surround(<nRow>,<nCol>,"<cColor>","<cText>")
Message1() -- Displays a single-line message, waits for user to press a key
before program moves on.
Usage: Message1(<nRow>,<nWidth>,"<cColor>","<cText>")
Message2() -- Same as above, but displays message in a window (with shadow).
Usage: Message2("<cText>","<cColor>")
Message3() -- Same as above, but will handle LONG messages, wrapping inside
window.
Usage: Message3("<cText>","<cColor>")
Message4() -- 2-Line message in a window, pauses for user.
Usage: Message4("<cText1>","<cText2>","<cColor>")
Monitor -- Displays a box, showing total records in database -- is designed
to be used in a system that does a record-by-record update,
so the user knows something is happening. You need to add code
to display actual record numbers as the task is happening.
Usage: do Monitor with "<cText>","<cColors>"
Monitoroff -- Cleanup for Monitor procedure above.
Usage: do MonitorOff
ScrnHead() -- Used to display a screen header inside a box (with a shadow).
Usage: ScrnHead("<cColor>","<cText>")
YesNo() -- Used to ask a "yes/no" type question, allows three lines of
message, and uses menu pads to choose (move cursor, press
<enter>).
Usage: YesNo(<lAnswer>,"<cMess1>","<cMess2>","<cMess3>",;
"<cColors>")
YesNo2() -- As above, but allows programmer to choose position on screen.
Usage: YesNo2(<lAnswer>,"<cWhere>","<cMess1>","<cMess2>",;
"<cMess3>","<cColors>")
where cWhere may be one of the following:
UL = Upper Left
UC = Upper Center
UR = Upper Right
CL = Center Left
CC = Center Center
CR = Center Right
BL = Bottom Left
BC = Bottom Center
BR = Bottom Right
Anything else will default to CC.
ErrorMsg() -- Allows 2 lines of message, first is ** ERROR **, or optionally,
** ERROR # ** where '#' is a number (if "<cErr>" is empty,
(""), system uses first option, but there must be SOMETHING
there).
Usage: ErrorMsg("<cErr>","<cMess1>","<cMess2>","<cColors>")
Shadow -- Used for windows/boxes to display a shadow, giving 3-D effect.
Usage: do Shadow with <nULRow>,<nULCol>,<nBRRow>,<nBRCol>
VPick() -- Multiple-item Picklist -- this routine will allow you to create
a simple vertical picklist of items, returning the first letter
of the option selected, or a null string if the user pressed
<Esc>.
Usage: VPick(<nRow>,<nCol>,"<~Option1~Option2~Option3>",;
"<cTitle>","<cMessage>",<lShadow>,<cColor>)
HPick() -- Very much like VPICK() above, but does a Horizontal Picklist.
Usage: HPick(<nRow>,<nCol>,"<~Option1~Option2~Option3>",;
"<cTitle>","<cMessage>",<lShadow>,<cColor>)
-------------------------
COLOR PROCESSING ROUTINES
-------------------------
SetColor -- Sets colors to contents of a memvar to handle various parts of
the screen. THIS IS A NEW ROUTINE -- USERS OF THE OLD
SETCOLOR and SETCOLOR2 ROUTINES SHOULD CHECK "OBSOLETE.PRG".
Usage: do SetColor with <cColorVar>
ReColor -- Restores colors to those held in a string of the form returned
by SET("ATTRIBUTE").
Usage: Do ReColor with <cColors>
ColorBrk() -- Returns one of three portions of a color variable as used in
many of my own routines (YESNO, etc.). Used for explicitly
setting colors.
Usage: ColorBrk(<cColorVar>,<nField>)
----------------------------
STRING MANIPULATION ROUTINES
----------------------------
AllTrim() -- Trims both sides of a character field/memvar.
Usage: AllTrim(<cString>)
State() -- This is used for validation of a STATE (two letter) code ...
(returns .t. or .f.) -- useful for data entry.
Usage: State(<cState>)
----------------------
DATE HANDLING ROUTINES
----------------------
DateText() -- Convert date to Month Day, Year format.
Usage: DateText(<dDate>)
DateText2() -- As above, adds day of week (DoW, Month Day, Year).
Usage: DateText2(<dDate>)
Age() -- Returns the age of someone as of DATE(), given their birthdate.
Usage: Age(<dDate>)
-----------------------
FIELD HANDLING ROUTINES
-----------------------
IsUnique() -- Used to check a keyfield in a database to see if it's unique.
Usage: IsUnique(<xValue>,<cOrder>)
--------------
MISC. ROUTINES
---------